class Model {
  int iId;
  String name;
  int age;

  Model({this.iId, this.name, this.age});

  Model.fromJson(Map<String, dynamic> json) {
    iId = json['_id'];
    name = json['name'];
    age = json['age'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['_id'] = this.iId;
    data['name'] = this.name;
    data['age'] = this.age;
    return data;
  }

  @override
  String toString() {
    return 'Model{iId: $iId, name: $name, age: $age}';
  }
}